﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;

namespace ConsoleApplication1
{
    class Program
    {
        static void Main(string[] args)
        {
            List<Score> record = new List<Score>();


            string file = @"C:\\Users\\isen\\Desktop\\lolo.txt";
            #region lecture

            StreamReader sr = File.OpenText(file);
            {
                string s = "";
                while ((s = sr.ReadLine()) != null)
                {
                    record.Add(new Score(s, int.Parse(sr.ReadLine()), DateTime.ParseExact(sr.ReadLine(), "ddMMyy", null)));
                }
            }
            #endregion


            record.Add(new Score("emrmemre", 54454545, DateTime.Now.Date));
            List<Score> newScores = record.OrderByDescending(e => e.points).ToList();

            Console.Write(record[0]);
            Console.Write(record[1]);
            Console.Read();

        }

       
    }

}



